<?php

require_once '../user.class.php';
require_once '../../mysql.config.php';
echo "hello " . $db_address;
$user = new User(1);

//echo $user->setName("Adomas");

echo "<b>E-Mail: </b>".$user->getEmail()."<br/>";
echo "<b>Name: </b>".$user->getName()."<br/>";
echo "<b>Surname: </b>".$user->getSurname()."<br/>";
echo "<b>ID: </b>".$user->getId()."<br/>";
echo "<b>My works: </b> <pre>";
print_r($user->getWorks());
echo "</pre><br/>";
echo "<b>My asks: </b> <pre>";
print_r($user->getAsks());
echo "</pre><br/>";
echo "<b>My feedbacks: </b> <pre>";
print_r($user->getFeedbacks());
echo "</pre><br/>";
/*echo "<h2> Sukurti nauja useri </h2>";

$user2 = new User("Ignas", "Janickas", "ignas.janickas@gmail.com");
echo $user2->getEmail() . "<br/>";
echo $user2->getName() . "<br/>";
echo $user2->getSurname() . "<br/>";
echo $user2->getId() . "<br/>";
*/
?>
